package vip.ifmm.lehouse.commodity.service.event;

import org.springframework.context.ApplicationEvent;
import vip.ifmm.lehouse.common.model.Comment;

/**
 * 新增评论事件
 *
 * @author Red
 * email: 1318944013@qq.com
 * date: 2019/6/21 14:45
 */
public class StarToSqlEvent extends ApplicationEvent {

    private Comment comment;

    // 将指定的评论作为事件源
    public StarToSqlEvent(Comment comment) {
        super(comment);
        this.comment = comment;
    }

    public Comment getComment() {
        return comment;
    }
}
